Send feedback on this topic.
Teradata.Client.Provider
Read(Byte[],Int32,Int32) Method



Teradata.Client.Provider Namespace > TdStream Class : Read(Byte[],Int32,Int32) Method
Specifies a Byte array to read data into.
Specifies the location within the buffer to read data into.
Specifies the number of bytes to read into the buffer
Reads data into the application provided buffer and advances the current position of the stream.
Syntax
'Declaration
 
Public Overrides NotOverridable Function Read( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Integer
'Usage
 
Dim instance As TdStream
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.Read(buffer, offset, count)
public override int Read( 
   byte[] buffer,
   int offset,
   int count
)
public:
int Read( 
   array<byte>^ buffer,
   int offset,
   int count
) override 

Parameters

buffer
Specifies a Byte array to read data into.
offset
Specifies the location within the buffer to read data into.
count
Specifies the number of bytes to read into the buffer

Return Value

Returns the number of bytes read from the Advanced SQL Engine and written into the buffer. The number will be equal or less than count.
Exceptions
ExceptionDescription
buffer is null.

count or offset is negative or the sum of offset and count is larger than the buffer length.

The TdConnection is closed.
The TdStream is closed / dispose.
The SQL Engine returned an error, or the .NET Data Provider for Teradata detected an error.
Remarks
The .NET Data Provider for Teradata reads the LOB from Teradata and transfers it to the application provided buffer.
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdStream Class
TdStream Members